package com.jk.smartelderlycare.service;

import com.jk.smartelderlycare.dto.SysHomestay;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/11/25 16:49
 * @Version v1.0
 */
public interface SysHomestayService {

    /**
     * @description: 民宿后端分页查询
     * @param: [sysHomestay, pageNum, pageSize]
     * @return: com.jk.smartelderlycare.pojo.PagedResponse<com.jk.smartelderlycare.dto.SysHomestay>
     * @author hhk
     * @date: 2024/11/25 16:41
     */

    public PagedResponse<SysHomestay> findSysHomestayPaginationList( SysHomestay sysHomestay,  Integer pageNum,  Integer pageSize);
    /**
     * @description: 新增民宿
     * @param: [sysHomestay]
     * @return: void
     * @author hhk
     * @date: 2024/11/25 16:42
     */

    public void addSysHomestay( SysHomestay sysHomestay);
    /**
     * @description: 根据id删除一条数据
     * @param: [homestayId]
     * @return: void
     * @author hhk
     * @date: 2024/11/25 16:42
     */

    public void deleteSysHomestayById( Long homestayId);
    /**
     * @description: 根据id删除一条数据
     * @param: [homestayId]
     * @return: com.jk.smartelderlycare.dto.SysHomestay
     * @author hhk
     * @date: 2024/11/25 16:43
     */

    public SysHomestay findSysHomestayById( Long homestayId);

    /**
     * @description: 修改民宿
     * @param: [sysHomestay]
     * @return: void
     * @author hhk
     * @date: 2024/11/25 16:44
     */

    public void updateSysHomestay( SysHomestay sysHomestay);

    /**
     * @description: 状态通过
     * @param: [sysHomestay]
     * @return: void
     * @author hhk
     * @date: 2024/11/25 16:44
     */

    public void upPassStatusById( SysHomestay sysHomestay);
    /**
     * @description: 状态未通过
     * @param: [homestayName]
     * @return: void
     * @author hhk
     * @date: 2024/11/25 16:47
     */

    public void FailedStatusById( SysHomestay sysHomestay);

    /**
     * @description: 发布房屋列表查询
     * @param: [sysHomestay]
     * @return: java.util.List<com.jk.smartelderlycare.dto.SysHomestay>
     * @author hhk
     * @date: 2024/11/27 15:04
     */

    public List<SysHomestay> findSysHomestayList( SysHomestay sysHomestay);

    /**
     * @description: 全部租房列表查询
     * @param: []
     * @return: java.util.List<com.jk.smartelderlycare.dto.SysHomestay>
     * @author hhk
     * @date: 2024/11/28 16:06
     */

    public List<SysHomestay>fimdSysHomestayList();

    /**
     * @description: 导入
     * @param: [sysHomestay]
     * @return: void
     * @author hhk
     * @date: 2024/11/25 16:42
     */

    public void addHomestay( SysHomestay sysHomestay);
}
